﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Badhshala.Models;

namespace Badhshala
{
    class ScoreChecker
    {

        public int CheckScore(Result result)
        {
            if (result.SlotAPosition == result.SlotBPosition && result.SlotAPosition == result.SlotCPosition)
            {
                return GlobalConstants.AllSameCredits;
            }
            else if (result.SlotAPosition == result.SlotBPosition
                    || result.SlotBPosition == result.SlotCPosition
                    || result.SlotAPosition == result.SlotCPosition)
            {
                return GlobalConstants.TwoSameCredits;
            }
            else
            {
                return GlobalConstants.AllDifferentCredits;
            }
        }
    }
}